package com.work.device.feign;

import com.work.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "device")
public interface DeviceFeign {

    /**
     * 根据设备名称分页查询设备
     *
     * @param map 查询条件map
     * @return Result 返回数据
     */
    @GetMapping("/device/findAll")
    public Map<String, Object> findAll(@RequestParam("map") Map<String, Object> map);
}
